package com.youth.entity.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName Order
 * @Description: TODO 订单持久化对象
 * @Author dy
 * @Date 2019/10/30 20:49
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Order implements Serializable {
    private static final Long serialVersionUID = 1L;

    private String orderId;    //订单id

    private String payment;    //实付金额。精确到两位小数


    private Integer paymentType;    //支付类型  1.在线支付  2.货到付款

    private String postFee;    //邮费

    private Integer status;   //状态   1.未付款  2.已付款   3.未发货  4.已发货  5.交易关闭

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;    //订单创建时间

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;     //订单更新时间

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date paymentTime;   //付款时间

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date consignTime;    //发货时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;       //交易完成时间

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date closeTime;     //交易关闭时间

    private String shippingName;    //物流名称

    private String shippingCode;    //物流单号

    private Long userId;      //用户id

    private String buyerMessage;   //买家留言

    private String buyerNick;     //买家昵称

    private Integer buyerRate;     //买家是否已经评价

}
